package com.gl.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author lsy
 * @since 2021-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_permission")
public class TPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 父级id
     */
    @TableField("parent_id")
    private String parentId;

    /**
     * 权限名称
     */
    @TableField("name")
    private String name;

    /**
     * 权限吗（唯一）
     */
    @TableField("permission_code")
    private String permissionCode;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
